TR | NN n/a IE 4 DOM 1 | ||
The TR object reflects the TR element. Note that the following items are not available in the Macintosh version of Internet Explorer 4: innerHTML, innerText, and outerText properties; insertAdjacentHTML( ) and insertAdjacentText( ) methods. | |||
HTML Equivalent<TR> | |||
Object Model Reference
|
align | NN n/a IE 4 DOM 1 | ||
Read/Write | |||
Defines the horizontal alignment of content within all cells of the row. | |||
Exampledocument.all.myTR.align = "center" | |||
Value Any of the three horizontal alignment constants: center | left | right. | |||
|
bgColor | NN n/a IE 4 DOM 1 | ||
Read/Write | |||
Background color of the table cells in the current row. This color setting is not reflected in the style sheet backgroundColor property. Even if the BGCOLOR attribute or bgColor property is set with a plain-language color name, the returned value is always a hexadecimal triplet. | |||
Exampledocument.all.myTR.bgColor = "yellow" | |||
Value A hexadecimal triplet or plain-language color name. |
|||
|
borderColor | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
Color of the element's border. Internet Explorer applies the color to all four lines that make up the interior border of a cell. Therefore, colors of adjacent cells do not collide. | |||
Exampledocument.all.myTR.borderColor = "salmon" | |||
Value A hexadecimal triplet or plain-language color name. A setting of empty is interpreted as "#000000" (black). |
|||
|
borderColorDark, borderColorLight | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
The 3-D effect of table borders in Internet Explorer is created by careful positioning of light and dark lines around the page's background or default color. You can independently control the colors used for the dark and light lines by assigning values to the borderColorDark (left and top edges of the cell) and borderColorLight (right and bottom edges) properties. Typically, you should assign complementary colors to the pair of properties. There is also no rule that says you must assign a dark color to borderColorDark. The attributes merely control a well-defined set of lines so you can predict which lines of the border change with each attribute. | |||
Exampledocument.all.myTR.borderColorDark = "blue" document.all.myTR.borderColorLight = "cornflowerblue" | |||
Value A hexadecimal triplet or plain-language color name. A setting of empty is interpreted as "#000000" (black). |
|||
|
clientHeight, clientWidth | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
According to Microsoft's developer documentation, these properties reflect the height and width (in pixels) of the element's content. | |||
Examplevar midHeight = document.all.myTR.clientHeight/2 | |||
Value Integer pixel value. | |||
|
rowIndex | NN n/a IE 4 DOM n/a | ||
Read-only | |||
Returns a zero-based integer representing the position of the current row among all other TR elements in the entire table. The count is based on the source code order of the TR elements. | |||
Examplevar whichRow = document.all.myTR.rowIndex | |||
Value Integer. | |||
|
sectionRowIndex | NN n/a IE 4 DOM n/a | ||
Read-only | |||
Returns a zero-based integer representing the position of the current row among all other TR elements in the row grouping. A row grouping can be one of the following elements: THEAD, TBODY, TFOOT. The count is based on the source code order of the TR elements. | |||
Examplevar whichRow = document.all.myTR.sectionRowIndex | |||
Value Integer. | |||
|
vAlign | NN n/a IE 4 DOM n/a | ||
Read/Write | |||
The manner of vertical alignment of text within the cells of the current row. | |||
Exampledocument.all.myTR.vAlign = "baseline" | |||
Value Case-insensitive constant (as a string): baseline | bottom | middle | top. | |||
|
blur( ) | NN n/a IE 4 DOM n/a |
Removes focus from the current element and fires an onBlur event (in IE). No other element necessarily receives focus as a result. | |
Returned Value None. | |
Parameters None. |
focus( ) | NN n/a IE 4 DOM n/a |
Gives focus to the current element and fires the onFocus event (in IE). If another element had focus at the time, it receives an onBlur event. | |
Returned Value None. | |
Parameters None. |
cells[ ] | NN n/a IE 4 DOM n/a |
An array of all TD element objects contained by the current TR object. Items in this array are indexed (zero based) in source code order. Each item of the array is an object whose properties and methods may be accessed as if the object were referenced directly. | |
SyntaxTRobject.cells(index).objectPropertyOrMethod |